package com.snake.excel2java.excel.common.row;

import org.apache.poi.xssf.usermodel.XSSFRow;

import com.snake.excel2java.excel.ExcelRowLoader;

import com.snake.excel2java.excel.StringType;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public abstract class DropRow extends ExcelRowLoader {

	//Drop=int,id,ID#int,groupId,组#float,price1,一抽#float,price3,三抽#float,price10,十抽

	protected int id;		//ID
	protected int groupId;		//组
	protected float price1;		//一抽
	protected float price3;		//三抽
	protected float price10;		//十抽


	protected void doLoad(XSSFRow row, int[] dataIndex) {

		int colIndex = 0;

		id = readInt(row, dataIndex[colIndex++]);
		groupId = readInt(row, dataIndex[colIndex++]);
		price1 = readFloat(row, dataIndex[colIndex++]);
		price3 = readFloat(row, dataIndex[colIndex++]);
		price10 = readFloat(row, dataIndex[colIndex++]);
	}

}